package cn.lanqiao.springboot;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@MapperScan(basePackages = "cn.lanqiao.springboot.mapper")
@EnableCaching //开启SpringCache缓存，默认关闭
@EnableTransactionManagement //开启声明式事务，默认开始
@EnableScheduling //开启定时任务，默认开启
@SpringBootApplication
public class SpringbootApplication {

    public static void main(String[] args) {
        SpringApplication.run(SpringbootApplication.class, args);
    }

}
